2000-03-08 Jonathan Blandford <jrb@redhat.com>
* gdk-pixbuf/io-gif.c (gdk_pixbuf__gif_image_load): free the context.
(gdk_pixbuf__gif_image_load_animation): free the context.
+2000-03-08 Jonathan Blandford <jrb@redhat.com>
+
+ * gdk-pixbuf/io-gif.c (gdk_pixbuf__gif_image_load): free the context.
+ (gdk_pixbuf__gif_image_load_animation): free the context.
+
2000-03-06 Arjan van de Ven <arjan@fenrus.demon.nl>
* gdk-pixbuf/io-bmp.c: Fixed to pointer-bugs and a
gdk_pixbuf__gif_image_load (FILE *file)
{
GifContext *context;
+ GdkPixbuf *pixbuf;
g_return_val_if_fail (file != NULL, NULL);
gif_main_loop (context);
- return context->pixbuf;
+ pixbuf = context->pixbuf;
+ g_free (context);
+
+ return pixbuf;
}
gpointer
gdk_pixbuf__gif_image_load_animation (FILE *file)
{
GifContext *context;
+ GdkPixbufAnimation *animation;
g_return_val_if_fail (file != NULL, NULL);
context->file = file;
gif_main_loop (context);
-
- return context->animation;
+
+ animation = context->animation;
+ g_free (context);
+ return animation;
}